#ifndef SELECTPLUGINBUTTON_H
#define SELECTPLUGINBUTTON_H

#include <QRadioButton>
class uploadPluginClass;

class SelectPluginButton : public QRadioButton
{
	Q_OBJECT
public:
	SelectPluginButton(const QString &label, uploadPluginClass *plugin)
		: QRadioButton(label),
		AssociatedPlugin(plugin) {
		connect(this, SIGNAL(toggled(bool)), this, SLOT(OnToggled(bool)));
	}
	uploadPluginClass *AssociatedPlugin;

public slots:
	inline void OnToggled(const bool checked) {
		emit toggled(checked, this->AssociatedPlugin);
	}
signals:
	void toggled(const bool checked, uploadPluginClass *AssociatedPlugin) const;

};





#endif // SELECTPLUGINBUTTON_H
